package com.ruizhong.centercontroll.util;

import java.io.Serializable;

public class KeyInfo implements Serializable {
    private static final long serialVersionUID = 7217401992634321193L;
    private int event;
    private int key_code;
    private String word;
    private String system = "ipad";
    private String type = "key";
    private double x;
    private double y;
    private double fitWidth;
    private double fitHeight;
    private double scale;
    private double left;
    private double top;
    private int id;
    private int screenWidth;

    private int screenHeight;

    public void setScreenWidth(int screenWidth) {
        this.screenWidth = screenWidth;
    }

    public void setScreenHeight(int screenHeight) {
        this.screenHeight = screenHeight;
    }

    public int getScreenWidth() {
        return screenWidth;
    }

    public int getScreenHeight() {
        return screenHeight;
    }

    public KeyInfo(int event, int key_code) {
        this.system = "PC";
        this.event = event;
        this.key_code = key_code;
    }

    public void setX(double x) {
        this.x = x;
    }

    public void setY(double y) {
        this.y = y;
    }

    public void setFitHeight(double fitHeight) {
        this.fitHeight = fitHeight;
    }

    public void setFitWidth(double fitWidth) {
        this.fitWidth = fitWidth;
    }

    public KeyInfo(String type,int id, String word) {
        this.type = type;
        this.id =id;
        this.word = word;
    }

    public KeyInfo(String type, int id, double x, double y, double fitWidth, double fitHeight,double left,double top,double scale,int screenWidth,int screenHeight) {
        this.type = type;
        this.id = id;
        this.x = x;
        this.y = y;
        this.fitWidth = fitWidth;
        this.fitHeight = fitHeight;
        this.left = left;
        this.top = top;
        this.scale = scale;
        this.screenWidth = screenWidth;
        this.screenHeight = screenHeight;
    }


    public void setLeft(double left) {
        this.left = left;
    }

    public double getLeft() {
        return left;
    }

    public void setTop(double top) {
        this.top = top;
    }

    public double getTop() {
        return top;
    }

    public void setScale(double scale){
        this.scale = scale;
    }

    public double getScale(){
        return scale;
    }

    public int getEvent() {
        return event;
    }

    public void setEvent(int event) {
        this.event = event;
    }

    public int getKey_code() {
        return key_code;
    }

    public void setKey_code(int key_code) {
        this.key_code = key_code;
    }

    public String getWord() {
        return word;
    }

    public int getId() {
        return id;
    }

    public double getX() {
        return x;
    }

    public double getY() {
        return y;
    }

    public String getSystem() {
        return system;
    }

    public String getType() {
        return type;
    }

    public double getFitWidth() {
        return fitWidth;
    }

    public double getFitHeight() {
        return fitHeight;
    }
}
